From d96a999d460600e445e6806cccc53b1114a80b20 Mon Sep 17 00:00:00 2001 From: "mjw@wray-m-3.hpl.hp.com" Date: Thu, 19 Aug 2004 14:35:02 +0000 Subject: [PATCH] bitkeeper revision 1.1159.1.90 (4124ba96RLXO5OUyP4yBxVBa7NDnUw) Allow some more characters in domain names. --- tools/python/xen/xend/XendDomainInfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 5e7bb91b78..309521ef81 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -444,7 +444,7 @@ class XendDomainInfo: def check_name(self, name): """Check if a vm name is valid. Valid names start with a non-digit - and contain alphabetic characters, digits, or characters in '_-.'. + and contain alphabetic characters, digits, or characters in '_-.:/+'. The same name cannot be used for more than one vm at the same time. @param name: name @@ -457,7 +457,7 @@ class XendDomainInfo: raise VmError('invalid vm name') for c in name: if c in string.digits: continue - if c in '_-.': continue + if c in '_-.:/+': continue if c in string.ascii_letters: continue raise VmError('invalid vm name') dominfo = domain_exists(name) -- 2.30.2